﻿<%@ Page Title="inspectionMaterial" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="lcs.Web.inspectionMaterial.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
    <script src="../../js/myjs.js"></script>
<script src="../../My97DatePicker/WdatePicker.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<!--Title -->

            <!--Title end -->

            <!--Add  -->

            <!--Add end -->

            <!--Search -->
            <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 80px" align="right" class="tdbg">
                         <b>物料：</b>
                    </td>
                    <td class="tdbg">                       
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;<b>安装地址：</b>&nbsp; <asp:TextBox ID="txtdress" runat="server"></asp:TextBox>&nbsp;
                   <b>状态：</b>
                        <asp:DropDownList ID="ddlfy" runat="server">
                            <asp:ListItem Value="-1" >所有</asp:ListItem>
            <asp:ListItem Value="0" Selected="True" >未分配</asp:ListItem>
            <asp:ListItem Value="1">已分配</asp:ListItem>
        </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>
                    <td class="tdbg">
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None"  OnPageIndexChanging ="gridView_PageIndexChanging"
                     DataKeyNames="inspection_id" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="10"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
                    <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                               <HeaderTemplate>
                                    <input id="Checkbox1" type="checkbox" onclick="chall(this)" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField> 
                            
		<asp:BoundField DataField="submitname" HeaderText="提交人" SortExpression="submitUid" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="receive_address" HeaderText="地址" SortExpression="receive_address" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="material" HeaderText="物料" SortExpression="material" ItemStyle-HorizontalAlign="Center"  /> 	                
        <asp:BoundField DataField="submitQuestion" HeaderText="提交问题" SortExpression="submitQuestion" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="submitTime" HeaderText="提交时间" SortExpression="submitTime" ItemStyle-HorizontalAlign="Center"  /> 
		<%--<asp:BoundField DataField="checkUid" HeaderText="审核人、巡检任务分发人" SortExpression="checkUid" ItemStyle-HorizontalAlign="Center"  /> --%>
		<asp:BoundField DataField="dealname" HeaderText="处理人" SortExpression="dealUid" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="dealStatus" HeaderText="处理状态" SortExpression="dealStatus" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="dealResult" HeaderText="处理结果" SortExpression="dealResult" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="dealTime" HeaderText="处理时间" SortExpression="dealTime" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="useMoney" HeaderText="处理费用" SortExpression="useMoney" ItemStyle-HorizontalAlign="Center"  /> 
                            
                           
                        </Columns>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                         <asp:Panel ID="dis" runat="server">
                        <asp:DropDownList ID="ddldis" runat="server">
                        </asp:DropDownList>
&nbsp;<asp:Button ID="btnDelete" runat="server" Text="分配" OnClick="btnDelete_Click" OnClientClick="return chtest()"/> 
                             处理时间：<asp:TextBox ID="txttime" runat="server" Width="150px"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
&nbsp;<asp:Button ID="Button1" runat="server" Text="确定" OnClick="btnDelete1_Click" OnClientClick="return chtest()"/> 
                             <asp:Button ID="btnOUT" runat="server" Text="工作票" OnClick="btnOUT_Click" />
                              <asp:Button ID="btndel" runat="server" Text="删除" OnClick="btndel_Click"  OnClientClick="return chtest()" /> 

                            </asp:Panel>                           
                    </td>
                </tr>
            </table>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
